package com.hyd.hx_adr.domain.entity;

import com.hyd.hx_adr.domain.enums.ResCode;

/* *
 * 返回对象实体
 * @author AoMing
 * @since  2022/1/1320:07
 * */
public class JsonResult<T> {

    private ResCode code;

    private String message;

    private Long count;

    private Boolean success;

    private T data;

    public ResCode getCode() {
        return code;
    }

    public JsonResult<T> setCode(ResCode code) {
        this.code = code;
        return this;
    }

    public String getMessage() {
        return message;
    }

    public JsonResult<T> setMessage(String message) {
        this.message = message;
        return this;
    }

    public Long getCount() {
        return count;
    }

    public JsonResult<T> setCount(Long count) {
        this.count = count;
        return this;
    }

    public Boolean getSuccess() {
        return success;
    }

    public JsonResult<T> setSuccess(Boolean success) {
        this.success = success;
        return this;
    }

    public T getData() {
        return data;
    }

    public JsonResult<T> setData(T data) {
        this.data = data;
        return this;
    }

}
